package com.wisevar.thirdplatform.gateway.exception;

import com.wisevar.thirdplatform.gateway.model.common.IResultCode;

/**
 * 基本异常
 */
public class BaseException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private IResultCode resultCode;

    public BaseException(IResultCode errorCode) {
        super(errorCode.getMsg());
        this.resultCode = errorCode;
    }

    public BaseException(String message) {
        super(message);
    }

    public IResultCode getResultCode() {
        return resultCode;
    }
}
